// pages/code/code.js
Page({


  data: {
    Length: 8,        //输入框个数
    isFocus: false,    //聚焦
    Value: "",        //输入的内容
    ispassword: false, //是否密文显示 true为密文， false为明文。
    wapperkey: false,
    imgUrl: getApp().globalData.imgUrl
  },
  showbox: function () {
    this.setData({
      wapperkey: !this.data.wapperkey
    })
  },
  Focus(e) {
    var that = this;
    console.log(e.detail.value);
    var inputValue = e.detail.value;
    that.setData({
      Value: inputValue,
    })
  },
  Tap() {
    var that = this;
    that.setData({
      isFocus: true,
    })
  },
  formSubmit(e) {
    console.log(e.detail.value.password);
  },
})


